<%@page import="java.util.Map"%>
<%@ page language="java" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title>部门添加</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
<link href="<%=basePath%>/css/bootstrap.min.css" rel="stylesheet">
<!-- <script src="http://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script> -->
<script src="<%=basePath%>/js/bootstrap.min.js"></script>
<script src="<%=basePath%>/js/jquery.js"></script>
</head>
<body>
	<center>
		<%
 			Object obj = request.getAttribute("users");
			if (obj == null) {
 				System.out.println("Can not find any user. Send a query to get all users.");
 				response.sendRedirect("testQuery");
			} else {
 				System.out.println("users : " + (Map) obj);
			}
		%>
<%-- 		users : "${users}" --%>
		<div class="container-fluid">
			<div class="row-fluid">
				<div align="left">
					<button class="Btn" type="button" id="add" onclick="doAdd('${row.id}')">添加</button>
					<button class="Btn" type="button" id="del">删除</button>
					<button class="Btn" type="button" id="update">修改</button>
					<button class="Btn" type="button" id="button">提交PIMS</button>
					<form class="form-search">
						用户名：<input class="input-medium search-query" type="text" >
						用户名：<input class="input-medium search-query" type="text" >
						<button type="submit" class="btn">查找121212121</button>
					</form>
				</div>
				<div class="span12">
					
					<table class="table table-hover table-bordered">
						<thead>
							<tr class="info">
								<th>编号</th>
								<th style="width:30%; white-space:nowrap">产品</th>
								<th>交付时间</th>
								<th>状态</th>
							</tr>
						</thead>
						<tbody>
							<tr>
								<td>1</td>
								<td >TB - Monthly11111111111111111111111111111111111111111111</td>
								<td>01/04/2012</td>
								<td>Default</td>
							</tr>
<!-- 							<tr class="success"> -->
<!-- 								<td>1</td> -->
<!-- 								<td>TB - Monthly</td> -->
<!-- 								<td>01/04/2012</td> -->
<!-- 								<td>Approved</td> -->
<!-- 							</tr> -->
							<tr class="error">
								<td>2</td>
								<td  >TB - Monthly</td>
								<td>02/04/2012</td>
								<td>Declined</td>
							</tr>
							<tr class="warning">
								<td>3</td>
								<td>TB - Monthly</td>
								<td>03/04/2012</td>
								<td>Pending</td>
							</tr>
							<tr class="info">
								<td>4</td>
								<td>TB - Monthly</td>
								<td>04/04/2012</td>
								<td>Call in to confirm</td>
							</tr>
						</tbody>
					</table>
					
					<ul class="pagination" a>
						<li><a href="#">上一页</a></li>
						<li><a href="#">1</a></li>
						<li><a href="#">2</a></li>
						<li><a href="#">3</a></li>
						<li><a href="#">4</a></li>
						<li><a href="#">5</a></li>
						<li><a href="#">下一页</a></li>
					</ul>
					
				</div>
			</div>
		</div>
	</center>
</body>

<script type="text/javascript">
			function doAdd(id,baseId){
				alert(id,baseId);
// 				if(confirm("确定删除?")){
// 					window.location.href='${s.base}/cms/sysUser/delete.html?id='+id;
// 				}
			}
</script>
</html>
